
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Models.Entity
{
    /// <summary>
    /// 教师
    /// </summary>
    [Table("c_teacher")]
    public class CTeacherEntity : BaseModel
    {

        /// <summary>
        /// teacher_id
        /// </summary>
        [Key]
        [Column("teacher_id")]
        public int teacher_id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(20)]
        [Column("name")]
        public string name { get; set; }

        /// <summary>
        /// 不排课编号
        /// </summary>
        [Column("no_course")]
        public string no_course { get; set; }

        /// <summary>
        /// 老师课程
        /// </summary>
        /// <value></value>
        public List<CTeacherCourseEntity> courseList { get; set; }

        /// <summary>
        /// 老师课表
        /// </summary>
        /// <value></value>
        public Dictionary<string, CClassesWeekCourseEntityView> courseDic { get; set; }
    }
}
